package com.chaoXing.work2;

import com.chaoXing.work1.Circle;
import com.chaoXing.work1.Rect;

import java.net.InetAddress;

public class text {
    public static void main(String[] args) {
        MyPrinter p1=MyPrinter.getMyPrinter();
        MyPrinter p2=MyPrinter.getMyPrinter();
        MyPrinter p3=MyPrinter.getMyPrinter();
        p1.print(p3);
        p2.print(new Rect(2,5));
        p3.print(new Circle(3,"yellow"));
        p3.print(new MyLog());


        MyLog myLog=new MyLog("这是1");

        MyLog clone = myLog.clone();
        System.out.println(myLog);
        System.out.println(clone);

    }
}
